<template>
	<view class="main animated fadeIn faster">
		<view class="content position-fixed z-index-100" :style="{'paddingTop':$store.state.statusBarHeight+'px','backgroundColor':bgcolor}">
			<view class="title">
				<view class="goback" @click="goback">
					<image src="../../static/组 2457.png"></image>
				</view>
				<text>最近来访</text>
			</view>
		</view>
		<view class="Tips">-最近有<text>2</text>人访问了你-</view>
		<view class="JoinInList">
			<view class="item">
				<view class="info">
					<view class="icon">
						<image src="https://yuexiaoda-1314351529.cos.ap-shanghai.myqcloud.com/app/%E7%BB%84%203402.png"></image>
						<view class="sex">
							<image src="https://yuexiaoda-1314351529.cos.ap-shanghai.myqcloud.com/app/%E7%BB%84%203404.png"></image>
						</view>
					</view>
					<view class="detailed">
						<view class="name">1818 · 意</view>
						<view class="rank">
							<view class="icon">
								<image src="https://yuexiaoda-1314351529.cos.ap-shanghai.myqcloud.com/app/%E7%BB%84%203178.png"></image>
							</view>
							<view class="txt">最强王者</view>
						</view>
						<view class="desc">他在16分钟前访问了你的主页</view>
					</view>
				</view>
			</view>
		</view>
		<view class="MemberBar">
			<view class="txt">开通会员,查看全部对你感兴趣的人</view>
			<view class="btn" @click="OpenBulletFrame">立即解锁访客</view>
			<view class="desc">仅保留30天内的访客记录</view>
		</view>
		<view class="JoinInList">
			<view class="item" v-for="i in 10" :key="i.id">
				<view class="info">
					<view class="icon">
						<image class="bluricon" src="https://yuexiaoda-1314351529.cos.ap-shanghai.myqcloud.com/app/%E7%BB%84%203402.png"></image>
						<view class="sex">
							<image src="https://yuexiaoda-1314351529.cos.ap-shanghai.myqcloud.com/app/%E7%BB%84%203404.png"></image>
						</view>
					</view>
					<view class="detailed">
						<view class="blurname">1818 · 意</view>
						<view class="rank">
							<view class="icon">
								<image src="https://yuexiaoda-1314351529.cos.ap-shanghai.myqcloud.com/app/%E7%BB%84%203178.png"></image>
							</view>
							<view class="txt">最强王者</view>
						</view>
						<view class="desc">他在16分钟前访问了你的主页</view>
					</view>
				</view>
			</view>
		</view>
		<view class="Bullet_Frame" :style="{display: display}" @click="CloseBulletFrame">
			<view class="bg" @click.stop="CloseBullet">
				<swiper class="swiper" :indicator-dots="indicatorDots">
					<swiper-item v-for="i in 4" :key="i.id">
						<view class="swiper-item">
							<view class="img">
								<image src="https://yuexiaoda-1314351529.cos.ap-shanghai.myqcloud.com/app/%E7%BB%84%205032.png"></image>
							</view>
							<view class="text">SVIP专属优惠券</view>
							<view class="desc">解锁SVIP每周专属优惠券,下单更优惠</view>
						</view>
					</swiper-item>
				</swiper>
				<scroll-view class="scroll-view_H" scroll-x="true" scroll-left="120">
					<view class="scroll-view-item_H current">
						<view class="title">包月</view>
						<view class="amount">
							<view class="num">28</view>
							<view class="text">币</view>
						</view>
						<view class="desc">
							<view class="num">0.9元</view>
							<view class="text">/ 天</view>
						</view>
					</view>
					<view class="scroll-view-item_H">
						<view class="title">包季</view>
						<view class="amount">
							<view class="num">75</view>
							<view class="text">币</view>
						</view>
						<view class="desc">
							<view class="num DeleteLine">84币</view>
							<view class="text">省9币</view>
						</view>
					</view>
					<view class="scroll-view-item_H">
						<view class="title">包年</view>
						<view class="amount">
							<view class="num">286</view>
							<view class="text">币</view>
						</view>
						<view class="desc">
							<view class="num DeleteLine">336币</view>
							<view class="text">省50币</view>
						</view>
					</view>
					<view class="scroll-view-item_H">
						<view class="title">包月</view>
						<view class="amount">
							<view class="num">28</view>
							<view class="text">币</view>
						</view>
						<view class="desc">
							<view class="num DeleteLine">336币</view>
							<view class="text">省50币</view>
						</view>
					</view>
				</scroll-view>
				<view class="PayOptions">
					<view class="icon">
						<image src="https://yuexiaoda-1314351529.cos.ap-shanghai.myqcloud.com/app/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20241115141319.png"></image>
					</view>
					<view class="option">支付宝</view>
					<view class="arrow-r">
						<image src="https://yuexiaoda-1314351529.cos.ap-shanghai.myqcloud.com/app/%E7%BB%84%203365.png"></image>
					</view>
				</view>
				<view class="btn">快来点我开通SVIP</view>
				<view class="agreement">开通即表示同意《悦小嗒协议》</view>
			</view>
		</view>
	</view>
</template>

<script>
	import store from '@/store/index.js';
	export default {
		data() {
			return {
				indicatorDots: true,
				display: 'none',
				bgcolor:'#fff'
			}
		},
		methods: {
			goback() {
				uni.navigateBack({
					delta: 1
				});
			},
			OpenBulletFrame() {
				this.display = 'block'
				this.bgcolor = 'transparent'
			},
			CloseBulletFrame() {
				this.display = 'none'
				this.bgcolor = '#fff'
			},
			CloseBullet(e) {
				e.stopPropagation();
			}
		}
	}
</script>

<style scoped lang="scss">
.main {
	background: #fff;
	overflow: hidden;
	position: relative;
	.content {
		width: 100%;
	}
	.Tips {
		margin-top: 200rpx;
		color: #B3B3B4;
		text-align: center;
		text {
			color: #231815;
		}
	}
	.JoinInList {
		width: 730rpx;
		margin: 30rpx auto 0;
		border-radius: 50rpx;
		background-color: #fff;
		overflow: hidden;
		padding-bottom: 10rpx;
		.item {
			width: 700rpx;
			height: 170rpx;
			margin: 30rpx auto;
			background-color: #f5f5f5;
			border-radius: 15rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			.info {
				display: flex;
				align-items: center;
				margin-left: 20rpx;
				.icon {
					position: relative;
					.bluricon {
						filter: blur(2px);
					}
					image {
						width: 152rpx;
						height: 152rpx;
					}
					.sex {
						position: absolute;
						bottom: 20rpx;
						right: 20rpx;
						image {
							width: 30rpx;
							height: 30rpx;
						}
					}
				}
				.detailed {
					.name {
						font-size: 32rpx;
					}
					.blurname {
						filter: blur(3px);
						margin-bottom: 4rpx;
						color: #231815;
						font-size: 32rpx;
						image {
							filter: blur(3px);
							width: 130rpx;
							height: 30rpx;
						}
					}
					.rank {
						display: flex;
						padding: 4rpx 0;
						.icon {
							background-color: #b73de3;
							width: 50rpx;
							border-radius: 15rpx 0 0 15rpx;
							margin: 0;
							display: flex;
							justify-content: center;
							align-items: center;
							image {
								width: 24.96rpx;
								height: 17.76rpx;
							}
						}
						.txt {
							color: #B73DE3;
							background-color: #e7cbf2;
							width: 110rpx;
							text-align: center;
							font-size: 24rpx;
							padding: 4rpx 6rpx 4rpx 0 ;
							border-radius: 0 10rpx 10rpx 0;
						}
					}
					.desc {
						color: #595757;
						font-size: 24rpx;
					}
				}
			}
			.btn {
				width: 150rpx;
				height: 60rpx;
				border-radius: 30rpx;
				color: #fff;
				margin-right: 50rpx;
				background: linear-gradient( 90deg, #ED65CE 0%, #E966CF 2%, #859BF0 69%, #5DB0FE 99%);
				display: flex;
				justify-content: center;
				align-items: center;
				image {
					width: 35rpx;
					height: 20rpx;
					background-color: #fff;
				}
			}
		}
	}
	.MemberBar {
		width: 650rpx;
		height: 276rpx;
		margin: 0 auto;
		border-radius: 10rpx;
		background-image: url(https://yuexiaoda-1314351529.cos.ap-shanghai.myqcloud.com/app/%E7%BB%84%203157.png);
		background-size: contain;
		overflow: hidden;
		.txt {
			color: #231815;
			font-size: 30rpx;
			text-align: center;
			margin: 40rpx 0 30rpx;
		}
		.btn {
			width: 400rpx;
			height: 80rpx;
			line-height: 80rpx;
			margin: 0 auto;
			border-radius: 50rpx;
			color: #fff;
			text-align: center;
			font-size: 30rpx;
			background: linear-gradient(90deg, #ED65CE 0%, #E966CF 2%, #859BF0 69%, #5DB0FE 99%);
		}
		.desc {
			color: #5DB0FE;
			text-align: center;
			margin-top: 15rpx;
		}
	}
	.Bullet_Frame {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(23, 28, 97, .6);
		.bg {
			position: fixed;
			bottom: 150rpx;
			left: 50%;
			transform: translateX(-50%);
			border-radius: 35rpx;
			width: 730rpx;
			height: 70vh;
			overflow: hidden;
			background-color: #fff;
			.swiper {
				height: 450rpx;
				.swiper-item {
					display: block;
					height: 100%;
					line-height: 300rpx;
					text-align: center;
					display: flex;
					align-items: center;
					flex-direction: column;
					.img {
						margin-top: 70rpx;
						width: 316rpx;
						height: 195rpx;
						image {
							width: 100%;
							height: 100%;
							vertical-align: top;
						}
					}
					.text {
						width: 100%;
						height: 85rpx;
						line-height: 90rpx;
						font-size: 34rpx;
						font-weight: 700;
					}
					.desc {
						height: 30rpx;
						line-height: 30rpx;
						font-size: 24rpx;
						color: #717071;
					}
				}
			}
			.scroll-view_H {
				white-space: nowrap;
				width: 100%;
				height: 280rpx;
				margin-top: 50rpx;
				.scroll-view-item_H {
					margin-top: 50rpx;
					display: inline-block;
					text-align: center;
					box-sizing: border-box;
					width: 29%;
					height: 100%;
					border-radius: 38rpx;
					background: #f5f5f5;
					margin: 0 12rpx;
					.title {
						display: flex;
						justify-content: center;
						height: 50rpx;
						margin-top: 30rpx;
						font-size: 34rpx;
						color: #3E3A39;
					}
					.amount {
						display: flex;
						align-items: center;
						justify-content: center;
						height: 140rpx;
						color: #231815;
						.num {
							font-size: 60rpx;
							font-weight: 700;
						}
						.text {
							margin-top: 20rpx;
						}
					}
					.desc {
						display: flex;
						justify-content: center;
						margin-bottom: 20rpx;
						font-size: 24rpx;
						color: #231815;
						.num {
							margin-right: 6rpx;
						}
						.DeleteLine {
							margin-right: 8rpx;
							text-decoration-line: line-through;
						}
					}
				}
				.scroll-view-item_H:first-child {
					margin-left: 30rpx;
				}
				.scroll-view-item_H:last-child {
					margin-right: 30rpx;
				}
				.current {
					background: #CFF0FB;
					border: 1px solid #46C4FF;
				}
			}
			.PayOptions {
				display: flex;
				justify-content: space-between;
				align-items: center;
				margin-top: 66rpx;
				.icon {
					margin-left: 74rpx;
					margin-right: 26rpx;
					image {
						width: 64rpx;
						height: 64rpx;
					}
				}
				.option {
					flex: 1;
					color: #231815;
					font-size: 28rpx;
				}
				.arrow-r {
					display: flex;
					align-items: center;
					margin-right: 85rpx;
					image {
						width: 10.52rpx;
						height: 9.86rpx;
					}
				}
			}
			.btn {
				width: 90%;
				margin: 44rpx auto 28rpx;
				text-align: center;
				font-size: 32rpx;
				color: #fff;
				height: 87rpx;
				line-height: 87rpx;
				border-radius: 50rpx;
				background: linear-gradient( 90deg, #ED65CE 0%, #E966CF 2%, #859BF0 69%, #5DB0FE 99%);
			}
			.agreement {
				color: #717071;
				font-size: 24rpx;
				text-align: center;
			}
		}
	}
}
.title {
	display: flex;
	align-items: center;
	font-weight: 700;
	height: 80rpx;
	.goback {
		image {
			margin-left: 50rpx;
			width: 20rpx;
			height: 30rpx;
		}
	}
	text {
		flex: 1;
		margin-right: 50rpx;
		font-size: 34rpx;
		text-align: center;
	}
}
.pt-300 {
	padding-top: 300rpx;
}
</style>
